package adminClient;

import java.rmi.RemoteException;

public class AdminClientThread implements Runnable {

	private AdminClient adminClient;

	private String adminName;

	private String adminPassword;

	private String adminIPAddress;

	public AdminClientThread(AdminClient adminClient, String adminName,
			String adminPassword, String adminIPAddress) {
		this.adminClient = adminClient;
		this.adminName = adminName;
		this.adminPassword = adminPassword;
		this.adminIPAddress = adminIPAddress;
	}

	@Override
	public void run() {
		try {
			String response = adminClient.getPlayerStatus(adminName, adminPassword,
					adminIPAddress);
			System.out.println(response);
		} catch (RemoteException re) {
			re.printStackTrace();
		}
	}

}
